package com.victualler.core.common.enums;

public enum QueryConditionEnum {
	EQ("=","相等"),
	Less("<","小于"),
	LessAndEQ("<=","小于等于"),
	Greater(">","大于"),
	GreaterAndEQ(">=","大于等于"),
	Like("like","相似"),
	StartLike("StartLike","首部相似"),
	endLike("endLike","首部相似"),
    idIn("idIn","子表parentId=父表id"),
	And("and","和连接"),
	Or("or","或连接"),
	
	DESC("desc","倒序"),
	ASC("asc","升序");
	

    private String key;
    private String value;

    private QueryConditionEnum(String key, String value) {
        this.key = key;
        this.value = value;
    }

    public static String getValue(String key) {
    	QueryConditionEnum[] var1 = values();
        int var2 = var1.length;

        for(int var3 = 0; var3 < var2; ++var3) {
        	QueryConditionEnum e = var1[var3];
            if (e.getKey().equals(key)) {
                return e.value;
            }
        }
        return null;
    }

    public String getValue() {
        return this.value;
    }

    public String getKey() {
        return this.key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public void setValue(String value) {
        this.value = value;
    }
}
